Nodejs & Git
nodejs 可以很方便下载安装.
git 由于服务器原因,安装包无法下载成功,github 桌面版同样如此.幸而找到 github
离线包
Hexo
source 文件夹中可以根据需要添加东西,比如 CNAME .
本地测试 http://localhost:4000/
hexo根目录下 _config.yml 和主题包下 _config.yml 要区分
域名
这个域名很便宜
SSH 测试遇到的问题
1 2
| $ ssh -T git@github.com ssh_exchange_identification: read: Connection reset by peer
|
参考 ssh 排错经验
用 ssh -v
测试
1 2 3 4 5 6 7 8 9 10 11 12
| $ ssh -v git@github.com OpenSSH_6.6.1, OpenSSL 1.0.1i 6 Aug 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 1: Applying options for * debug1: /etc/ssh/ssh_config line 5: Applying options for github.com debug1: Connecting to github.com [192.30.253.113] port 22. debug1: Connection established. debug1: identity file /c/Users/L/.ssh/github_rsa type 1 debug1: identity file /c/Users/L/.ssh/github_rsa-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1 ssh_exchange_identification: read: Connection reset by peer
|
可以判断是服务器出了问题.
搭梯子:
1 2 3
| $ ssh -T git@github.com Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts. Hi username! You've successfully authenticated, but GitHub does not provide shell access.
|
毕竟小白,实际过程艰辛感人. 比如因为 SSH 的问题把所有软件重新装了一遍.
参考资料
主要参考:
史上最详细的Hexo博客搭建图文教程
Windows搭建自己的独立博客